package com.rykj.energy.database.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;

import java.util.Date;

@Data
@TableName("sub_task_camera_rel")
@ApiModel("任务及摄像头运行关联表")
public class TaskCameraRelation {

    @Id
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "算法任务Id" )
    @TableField(value = "taskId")
    private Integer  taskId;

    @ApiModelProperty(value = "算法任务Code" )
    @TableField(value = "taskCode")
    private String  taskCode;

    @ApiModelProperty(value = "摄像头Id" )
    @TableField(value = "cameraId")
    private Integer  cameraId;

    @ApiModelProperty(value = "区域Id" )
    @TableField(value = "orgId")
    private Integer  orgId;

    @ApiModelProperty("球机预置位id")
    @TableField(value = "presetId")
    private Integer presetId;

    @ApiModelProperty("任务优先级")
    private Integer level;

    @ApiModelProperty(value = "摄像头编号" )
    @TableField(value = "cameraNo")
    private String  cameraNo;

    @ApiModelProperty(value = "任务参数信息" )
    @TableField(value = "businessContent")
    private String businessContent;

    @ApiModelProperty("任务状态,run,wait")
    private String status;

    @ApiModelProperty(value = "任务执行计划" )
    @TableField(value = "execPlan")
    private String execPlan;

    @ApiModelProperty(value = "任务创建时间" )
    @TableField(value = "createTime")
    private Date createTime;

    @ApiModelProperty(value = "任务更新时间" )
    @TableField(value = "updateTime")
    private Date updateTime;

    @ApiModelProperty(value = "任务所属用户" )
    @TableField(value = "createId")
    private Integer createId;
}
